package com.sg.dto.biz.component.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc PendingMessagesDto
 * @使用场景
 */
@Data
public class PendingMessagesDto extends BaseDto implements Serializable {

    /**
     * 消息ID
     */
    @ApiModelProperty("消息ID")
    private String messageId;

    /**
     * 归属内容ID
     */
    @ApiModelProperty("归属内容ID")
    private String entityId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        PendingMessagesDto that = (PendingMessagesDto) o;
        return messageId == that.messageId && entityId == that.entityId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), messageId, entityId);
    }

}
